<?php
elgg_load_library('elgg:portfolio');

//print_r($date_param);
//$usr_id = elgg_get_logged_in_user_guid();
$usr_obj = elgg_get_logged_in_user_entity();
$usr_id = $usr_obj->username;

$default_date = last_working_day(strftime('%Y-%m-%d', time()));
$date_param = get_param_value('date_param', 'overview_date_param', $default_date);

$tableArray = portfolio_get_overview($date_param, $usr_id);
echo elgg_view('output/tablesorter', array(
		'value' => $tableArray,
		'tableid' => 'overview'
));
